Skip to content

Fix HttpServer breaking Azure App Service named pipe ports#488

Open
heyitsaamir wants to merge 3 commits intomainfrom
fix/named-pipe-port
Open

Fix HttpServer breaking Azure App Service named pipe ports#488
heyitsaamir wants to merge 3 commits intomainfrom
fix/named-pipe-port

Conversation

@heyitsaamir
Copy link
Copy Markdown
Collaborator

Summary

Fixes #487. SDK v2.0.6 broke deployments on Azure App Service because HttpServer.start() called parseInt() on the PORT environment variable, which on Azure App Service (IIS + iisnode) is a Windows named pipe path (e.g. \\.\pipe\507cb72a-...), not a numeric port. This returned NaN, causing the server to never bind and all requests to time out.

The fix removes the parseInt coercion and passes the port value through as-is to the adapter. Node's http.Server.listen() natively supports both numeric ports and named pipe strings. The IHttpServerAdapter.start() and ExpressAdapter.start() signatures are widened from number to number | string to match.

heyitsaamir and others added 3 commits March 24, 2026 23:48
These two markdown files are all a human needs to write — the e2e testing
skill generates and manages the actual Playwright test code from here.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove parseInt coercion in HttpServer.start() that converted named pipe
paths (e.g. \\.\pipe\...) to NaN on Azure App Service. Pass port through
as-is since Node's http.Server.listen() natively handles both numbers
and pipe strings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 2.0.6 will block the remote preview on some ATK's templates

1 participant